﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8" />
    <title>Xmpp: StateForge::Examples::XmppChat::Client Class Reference</title>
    <link href="/Content/Help.css" rel="stylesheet" type="text/css" />
    <link href="/Content/css/tabs.css" rel="stylesheet" type="text/css" />
    <link href="/Content/css/doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <div id="header">
        <img id="logo" alt="StateForge" src="/Content/Images/StateForgeLogo.png" />
        <div id="title">
            <h1>
                C# examples using state machines generated by StateBuilderDotNet
            </h1>
            <h3>
                Xmpp: StateForge::Examples::XmppChat::Client Class Reference
            </h3>
        </div>
        <div id="menucontainer">
            <ul id="menu">
                <li><a href="/">Home</a></li>
                <li><a href="/Home/Download">Downloads</a></li>
                <li><a href="/Help/state-machine-tools.aspx">Help</a></li>
                <li><a href="/Home/Faq">F.A.Q</a></li>
                <li><a href="/Home/About">Contact us</a></li>
            </ul>
        </div>
    </div>
<!-- Generated by Doxygen 1.7.4 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespace_state_forge.html">StateForge</a>      </li>
      <li class="navelem"><a class="el" href="namespace_state_forge_1_1_examples.html">Examples</a>      </li>
      <li class="navelem"><a class="el" href="namespace_state_forge_1_1_examples_1_1_xmpp_chat.html">XmppChat</a>      </li>
      <li class="navelem"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html">Client</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#properties">Properties</a> &#124;
<a href="#events">Events</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="#pri-static-attribs">Static Private Attributes</a>  </div>
  <div class="headertitle">
<div class="title">StateForge::Examples::XmppChat::Client Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="StateForge::Examples::XmppChat::Client" -->
<p><a href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a625a6d042a8174939c2c75b4f3f8cbd0">Client</a> (string user, string <a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a8a072a279cef2fb20344ebaeb743c448">password</a>, string server)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a4c64280fa47841755ee22e4a14a973d3">Open</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a048e2264c326834d46bcfd0383ba60bb">Close</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a23bf8b25f6b132bf83726b1dad898f56">RegisterNewAccount</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a05d8585020b6ceee7f99e5a55f881a15">SendMyPresence</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#afffc6e084bf1965ced4dc2d9f5b2298e">SubscriptionRequest</a> (Jid to)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">&lt;presence to="juliet@example.com" type="subscribe"&gt;  <a href="#afffc6e084bf1965ced4dc2d9f5b2298e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a1fa73404acb45b6173ba178eccb10a89">SubscriptionConfirm</a> (Jid to)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">&lt;presence to="romeo@example.net" type="subscribed"&gt;  <a href="#a1fa73404acb45b6173ba178eccb10a89"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#adf8725552a14ba9e07dba7407333d431">UnSubscribe</a> (Jid to)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">&lt;presence to="juliet@example.com" type="unsubscribe"&gt;  <a href="#adf8725552a14ba9e07dba7407333d431"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a77aa737761ca5e3a1d147cdf499e7871">SubscriptionRemove</a> (Jid to)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">&lt;presence to="romeo@example.net" type="unsubscribed"&gt;  <a href="#a77aa737761ca5e3a1d147cdf499e7871"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#afbb4cfc5a0f5881816761d63b752b512">RosterAddItem</a> (Jid to)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">&lt;iq id="agsXMPP_4" type="set"&gt;&lt;Query xmlns="jabber:iq:roster"&gt;&lt;/Query&gt;&lt;/iq&gt;  <a href="#afbb4cfc5a0f5881816761d63b752b512"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a0dc84f8367272f83857863d770abdafd">RosterRemoveItem</a> (Jid to)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">&lt;iq id="agsXMPP_5" type="set"&gt;&lt;Query xmlns="jabber:iq:roster"&gt;&lt;/Query&gt;&lt;/iq&gt;  <a href="#a0dc84f8367272f83857863d770abdafd"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a9959f06ebaa09e5d2c8fc6382eda1973">RosterRequest</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#ae7f2ac0a2a69f785c55516a5a0b2bca5">AddRosterItem</a> (Jid jid)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#ad363413f64bed9c80ffb42243f881492">SendChat</a> (Jid to, string messageText)</td></tr>
<tr><td colspan="2"><h2><a name="properties"></a>
Properties</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">XmppClientConnection&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aff4a98c8899b9af78bdf5759ff0afd19">xmppClientConnection</a><code> [get, set]</code></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">Jid&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a61556dffca0a90756e11390c9acc43e1">Jid</a><code> [get, set]</code></td></tr>
<tr><td colspan="2"><h2><a name="events"></a>
Events</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">LoginEventHandler&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a7b54bbaf812db415ae05aae301033527">LoginHandler</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">CloseEventHandler&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#ad17e946c7e43b3b9e2c098ca210e9b6b">CloseHandler</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">MessageEventHandler&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#abc155349dd63d0673f7393b6d9690f96">MessageHandler</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">PresenceEventHandler&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a1751f8d91095aea87aa26c2362ded63e">PresenceHandler</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">SubscribeRequestEventHandler&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#acb9192e15b46c450db9c0e366a6d0e53">SubscribeRequestHandler</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">SubscribeConfirmEventHandler&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a16bee587a46664d8623ec32aed45f1a1">SubscribeConfirmHandler</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">ErrorEventHandler&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a2b1a508421321afe94a555c5eeb101fa">ErrorHandler</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">RosterItemEventHandler&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a8d1f5a8befa5cb71386d56a16181acf3">RosterItemHandler</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">RosterEndEventHandler&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a66a7d36a34de9d485d0b2a682c8ca09c">RosterEndHandler</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">SaslStartEventHandler&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a3766802a05eaabb89a0ee86d13cfccfd">SaslStartHandler</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">AuthErrorEventHandler&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a723ad06ab991e93bece21da91dddb545">AuthErrorHandler</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">IqErrorEventHandler&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aa9b98a10489ececbc299fb9902a8c094">IqErrorHandler</a></td></tr>
<tr><td colspan="2"><h2><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#ac8cce059622d7bcdf293ab7e530bb89d">InitializeConnection</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a5c5a62c35f52db9792f835bef2d0ac64">OnReadXml</a> (object sender, string xml)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a83349c8028e772754f168f772b6e0965">OnWriteXml</a> (object sender, string xml)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a7004a29d1ccde56ee50d38c2ccd6110c">OnStreamError</a> (object sender, Element e)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#affa2f396a94fc45233e78360d65a989c">OnSocketError</a> (object sender, Exception exception)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a0054c4496a87ba3842442829e8ca5bee">OnValidateCertificate</a> (object sender, System.Security.Cryptography.X509Certificates.X509Certificate certificate, System.Security.Cryptography.X509Certificates.X509Chain chain, System.Net.Security.SslPolicyErrors sslPolicyErrors)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#ae85f9266134ff2f18fa0d8fcf74e8039">OnIq</a> (object sender, agsXMPP.protocol.client.IQ iq)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a5165c5678e533b6951ae6e8fcfcb02dd">OnIqError</a> (agsXMPP.protocol.client.IQ iq)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#acdbde560bb4b4fd434decae01800f0fe">OnIqRegister</a> (agsXMPP.protocol.client.IQ iq, Element query)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a8c491f3a895b62886e475d1ee5b62ae6">OnIqVersion</a> (agsXMPP.protocol.client.IQ iq, Element query)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a89472541f36df7204aefce467db6696e">OnRosterStart</a> (object sender)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aaa067a306cbdc91ac7dd65cdd1ce2d04">OnRosterItem</a> (object sender, agsXMPP.protocol.iq.roster.RosterItem item)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a03ef7f220d3b42dc9cc1dcfd6b184345">OnRosterEnd</a> (object sender)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a0f94f8b4957b6d7ef7630b2b68b332ec">OnPresence</a> (object sender, Presence presence)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a820513fb7ba41ba85322de5a5c368da8">OnMessage</a> (object sender, Message message)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a8c8d39bcf4f9954df171d2e203d4522b">OnError</a> (object sender, System.Exception exception)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a6b418d03edd6ba4439514bd307bb32be">OnLogin</a> (object sender)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#ad5eaa0d03a8c3efa1a5565f6bccc0afc">OnClose</a> (object sender)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aae6ccdb4b9c9fa3eb78a67066466766b">OnSaslStart</a> (object sender, SaslEventArgs e)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a5c767afe535a6faf8e64a8bcb7f91d0a">OnAuthError</a> (object sender, Element element)</td></tr>
<tr><td colspan="2"><h2><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a8a072a279cef2fb20344ebaeb743c448">password</a></td></tr>
<tr><td colspan="2"><h2><a name="pri-static-attribs"></a>
Static Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static readonly string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aab18c99018f8245cd346986a55be38fb">traceName</a> = &quot;Client&quot;</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static TraceSource&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aaf0b29baf8d3873110a0de48d169a621">ts</a> = new TraceSource(<a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aab18c99018f8245cd346986a55be38fb">traceName</a>)</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock">
<p>Definition at line <a class="el" href="_client_8cs_source.html#l00028">28</a> of file <a class="el" href="_client_8cs_source.html">Client.cs</a>.</p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a625a6d042a8174939c2c75b4f3f8cbd0"></a><!-- doxytag: member="StateForge::Examples::XmppChat::Client::Client" ref="a625a6d042a8174939c2c75b4f3f8cbd0" args="(string user, string password, string server)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">StateForge::Examples::XmppChat::Client::Client </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>user</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>password</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>server</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_client_8cs_source.html#l00050">50</a> of file <a class="el" href="_client_8cs_source.html">Client.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a61556dffca0a90756e11390c9acc43e1">Jid</a> = <span class="keyword">new</span> <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a61556dffca0a90756e11390c9acc43e1">Jid</a>(user, server, null);
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a8a072a279cef2fb20344ebaeb743c448">password</a> = <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a8a072a279cef2fb20344ebaeb743c448">password</a>;

            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#ac8cce059622d7bcdf293ab7e530bb89d">InitializeConnection</a>();
        }
</pre></div>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ae7f2ac0a2a69f785c55516a5a0b2bca5"></a><!-- doxytag: member="StateForge::Examples::XmppChat::Client::AddRosterItem" ref="ae7f2ac0a2a69f785c55516a5a0b2bca5" args="(Jid jid)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::Client::AddRosterItem </td>
          <td>(</td>
          <td class="paramtype">Jid&#160;</td>
          <td class="paramname"><em>jid</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_client_8cs_source.html#l00157">157</a> of file <a class="el" href="_client_8cs_source.html">Client.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aaf0b29baf8d3873110a0de48d169a621">ts</a>.TraceInformation(<span class="stringliteral">&quot;AddRosterItem {0} to {1}&quot;</span>, this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a61556dffca0a90756e11390c9acc43e1">Jid</a>.ToString(), jid);
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aff4a98c8899b9af78bdf5759ff0afd19">xmppClientConnection</a>.RosterManager.AddRosterItem(jid);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a048e2264c326834d46bcfd0383ba60bb"></a><!-- doxytag: member="StateForge::Examples::XmppChat::Client::Close" ref="a048e2264c326834d46bcfd0383ba60bb" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::Client::Close </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_client_8cs_source.html#l00071">71</a> of file <a class="el" href="_client_8cs_source.html">Client.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aaf0b29baf8d3873110a0de48d169a621">ts</a>.TraceInformation(<span class="stringliteral">&quot;Close {0}&quot;</span>, this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a61556dffca0a90756e11390c9acc43e1">Jid</a>.ToString());
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aff4a98c8899b9af78bdf5759ff0afd19">xmppClientConnection</a>.Close();
        }
</pre></div>
</div>
</div>
<a class="anchor" id="ac8cce059622d7bcdf293ab7e530bb89d"></a><!-- doxytag: member="StateForge::Examples::XmppChat::Client::InitializeConnection" ref="ac8cce059622d7bcdf293ab7e530bb89d" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::Client::InitializeConnection </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_client_8cs_source.html#l00170">170</a> of file <a class="el" href="_client_8cs_source.html">Client.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aff4a98c8899b9af78bdf5759ff0afd19">xmppClientConnection</a> = <span class="keyword">new</span> XmppClientConnection();
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aff4a98c8899b9af78bdf5759ff0afd19">xmppClientConnection</a>.AutoAgents = <span class="keyword">false</span>;
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aff4a98c8899b9af78bdf5759ff0afd19">xmppClientConnection</a>.AutoPresence = <span class="keyword">true</span>;
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aff4a98c8899b9af78bdf5759ff0afd19">xmppClientConnection</a>.AutoRoster = <span class="keyword">true</span>;
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aff4a98c8899b9af78bdf5759ff0afd19">xmppClientConnection</a>.AutoResolveConnectServer = <span class="keyword">false</span>;

            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aff4a98c8899b9af78bdf5759ff0afd19">xmppClientConnection</a>.Password = this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a8a072a279cef2fb20344ebaeb743c448">password</a>;
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aff4a98c8899b9af78bdf5759ff0afd19">xmppClientConnection</a>.Username = <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a61556dffca0a90756e11390c9acc43e1">Jid</a>.User;
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aff4a98c8899b9af78bdf5759ff0afd19">xmppClientConnection</a>.Server = <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a61556dffca0a90756e11390c9acc43e1">Jid</a>.Server;
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aff4a98c8899b9af78bdf5759ff0afd19">xmppClientConnection</a>.ConnectServer = <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a61556dffca0a90756e11390c9acc43e1">Jid</a>.Server;
            <span class="comment">//this.xmppClientConnection.UseSSL = false;</span>
            <span class="comment">//this.xmppClientConnection.UseStartTLS = false;</span>
            <span class="comment">//this.xmppClientConnection.UseCompression = false;</span>
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aff4a98c8899b9af78bdf5759ff0afd19">xmppClientConnection</a>.OnRosterStart += <span class="keyword">new</span> ObjectHandler(<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a89472541f36df7204aefce467db6696e">OnRosterStart</a>);
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aff4a98c8899b9af78bdf5759ff0afd19">xmppClientConnection</a>.OnRosterItem += <span class="keyword">new</span> XmppClientConnection.RosterHandler(<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aaa067a306cbdc91ac7dd65cdd1ce2d04">OnRosterItem</a>);
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aff4a98c8899b9af78bdf5759ff0afd19">xmppClientConnection</a>.OnRosterEnd += <span class="keyword">new</span> ObjectHandler(<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a03ef7f220d3b42dc9cc1dcfd6b184345">OnRosterEnd</a>);
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aff4a98c8899b9af78bdf5759ff0afd19">xmppClientConnection</a>.OnPresence += <span class="keyword">new</span> <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a1751f8d91095aea87aa26c2362ded63e">PresenceHandler</a>(<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a0f94f8b4957b6d7ef7630b2b68b332ec">OnPresence</a>);
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aff4a98c8899b9af78bdf5759ff0afd19">xmppClientConnection</a>.OnMessage += <span class="keyword">new</span> <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#abc155349dd63d0673f7393b6d9690f96">MessageHandler</a>(<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a820513fb7ba41ba85322de5a5c368da8">OnMessage</a>);
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aff4a98c8899b9af78bdf5759ff0afd19">xmppClientConnection</a>.OnLogin += <span class="keyword">new</span> ObjectHandler(<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a6b418d03edd6ba4439514bd307bb32be">OnLogin</a>);
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aff4a98c8899b9af78bdf5759ff0afd19">xmppClientConnection</a>.OnClose += <span class="keyword">new</span> ObjectHandler(<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#ad5eaa0d03a8c3efa1a5565f6bccc0afc">OnClose</a>);
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aff4a98c8899b9af78bdf5759ff0afd19">xmppClientConnection</a>.OnError += <span class="keyword">new</span> <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a2b1a508421321afe94a555c5eeb101fa">ErrorHandler</a>(<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a8c8d39bcf4f9954df171d2e203d4522b">OnError</a>);
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aff4a98c8899b9af78bdf5759ff0afd19">xmppClientConnection</a>.OnAuthError += <span class="keyword">new</span> XmppElementHandler(<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a5c767afe535a6faf8e64a8bcb7f91d0a">OnAuthError</a>);
            <span class="comment">//this.xmppClientConnection.OnSaslStart += new SaslEventHandler(OnSaslStart);</span>
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aff4a98c8899b9af78bdf5759ff0afd19">xmppClientConnection</a>.OnIq += <span class="keyword">new</span> IqHandler(<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#ae85f9266134ff2f18fa0d8fcf74e8039">OnIq</a>);
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aff4a98c8899b9af78bdf5759ff0afd19">xmppClientConnection</a>.OnReadXml += <span class="keyword">new</span> XmlHandler(<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a5c5a62c35f52db9792f835bef2d0ac64">OnReadXml</a>);
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aff4a98c8899b9af78bdf5759ff0afd19">xmppClientConnection</a>.OnWriteXml += <span class="keyword">new</span> XmlHandler(<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a83349c8028e772754f168f772b6e0965">OnWriteXml</a>);
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aff4a98c8899b9af78bdf5759ff0afd19">xmppClientConnection</a>.ClientSocket.OnValidateCertificate += <span class="keyword">new</span> System.Net.Security.RemoteCertificateValidationCallback(<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a0054c4496a87ba3842442829e8ca5bee">OnValidateCertificate</a>);
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aff4a98c8899b9af78bdf5759ff0afd19">xmppClientConnection</a>.OnSocketError += <span class="keyword">new</span> <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a2b1a508421321afe94a555c5eeb101fa">ErrorHandler</a>(<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#affa2f396a94fc45233e78360d65a989c">OnSocketError</a>);
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aff4a98c8899b9af78bdf5759ff0afd19">xmppClientConnection</a>.OnStreamError += <span class="keyword">new</span> XmppElementHandler(<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a7004a29d1ccde56ee50d38c2ccd6110c">OnStreamError</a>);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a5c767afe535a6faf8e64a8bcb7f91d0a"></a><!-- doxytag: member="StateForge::Examples::XmppChat::Client::OnAuthError" ref="a5c767afe535a6faf8e64a8bcb7f91d0a" args="(object sender, Element element)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::Client::OnAuthError </td>
          <td>(</td>
          <td class="paramtype">object&#160;</td>
          <td class="paramname"><em>sender</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Element&#160;</td>
          <td class="paramname"><em>element</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_client_8cs_source.html#l00428">428</a> of file <a class="el" href="_client_8cs_source.html">Client.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aaf0b29baf8d3873110a0de48d169a621">ts</a>.TraceInformation(<span class="stringliteral">&quot;OnAuthError {0}, error {1}&quot;</span>, this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a61556dffca0a90756e11390c9acc43e1">Jid</a>.ToString(), element.ToString());
            <span class="keywordflow">if</span> (<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a723ad06ab991e93bece21da91dddb545">AuthErrorHandler</a> != null)
            {
                <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a723ad06ab991e93bece21da91dddb545">AuthErrorHandler</a>(<span class="keyword">this</span>, this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a61556dffca0a90756e11390c9acc43e1">Jid</a>, element);
            }
        }
</pre></div>
</div>
</div>
<a class="anchor" id="ad5eaa0d03a8c3efa1a5565f6bccc0afc"></a><!-- doxytag: member="StateForge::Examples::XmppChat::Client::OnClose" ref="ad5eaa0d03a8c3efa1a5565f6bccc0afc" args="(object sender)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::Client::OnClose </td>
          <td>(</td>
          <td class="paramtype">object&#160;</td>
          <td class="paramname"><em>sender</em></td><td>)</td>
          <td><code> [inline, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_client_8cs_source.html#l00408">408</a> of file <a class="el" href="_client_8cs_source.html">Client.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aaf0b29baf8d3873110a0de48d169a621">ts</a>.TraceInformation(<span class="stringliteral">&quot;OnClose {0}&quot;</span>, this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a61556dffca0a90756e11390c9acc43e1">Jid</a>.ToString());
            <span class="keywordflow">if</span> (<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#ad17e946c7e43b3b9e2c098ca210e9b6b">CloseHandler</a> != null)
            {
                <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#ad17e946c7e43b3b9e2c098ca210e9b6b">CloseHandler</a>(<span class="keyword">this</span>, this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a61556dffca0a90756e11390c9acc43e1">Jid</a>);
            }
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a8c8d39bcf4f9954df171d2e203d4522b"></a><!-- doxytag: member="StateForge::Examples::XmppChat::Client::OnError" ref="a8c8d39bcf4f9954df171d2e203d4522b" args="(object sender, System.Exception exception)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::Client::OnError </td>
          <td>(</td>
          <td class="paramtype">object&#160;</td>
          <td class="paramname"><em>sender</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">System.Exception&#160;</td>
          <td class="paramname"><em>exception</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_client_8cs_source.html#l00387">387</a> of file <a class="el" href="_client_8cs_source.html">Client.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aaf0b29baf8d3873110a0de48d169a621">ts</a>.TraceInformation(<span class="stringliteral">&quot;OnError {0}, exception:  {1}&quot;</span>,
                this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a61556dffca0a90756e11390c9acc43e1">Jid</a>.ToString(), exception.Message);
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aaf0b29baf8d3873110a0de48d169a621">ts</a>.TraceInformation(<span class="stringliteral">&quot;{0}&quot;</span>, exception.StackTrace);

            <span class="keywordflow">if</span> (<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a2b1a508421321afe94a555c5eeb101fa">ErrorHandler</a> != null)
            {
                <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a2b1a508421321afe94a555c5eeb101fa">ErrorHandler</a>(<span class="keyword">this</span>, this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a61556dffca0a90756e11390c9acc43e1">Jid</a>, exception);
            }
        }
</pre></div>
</div>
</div>
<a class="anchor" id="ae85f9266134ff2f18fa0d8fcf74e8039"></a><!-- doxytag: member="StateForge::Examples::XmppChat::Client::OnIq" ref="ae85f9266134ff2f18fa0d8fcf74e8039" args="(object sender, agsXMPP.protocol.client.IQ iq)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::Client::OnIq </td>
          <td>(</td>
          <td class="paramtype">object&#160;</td>
          <td class="paramname"><em>sender</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">agsXMPP.protocol.client.IQ&#160;</td>
          <td class="paramname"><em>iq</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_client_8cs_source.html#l00236">236</a> of file <a class="el" href="_client_8cs_source.html">Client.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            <span class="keywordflow">if</span> (iq != null)
            {
                <span class="keywordflow">if</span> (iq.Error != null)
                {
                    <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a5165c5678e533b6951ae6e8fcfcb02dd">OnIqError</a>(iq);
                }

                <span class="comment">// No Iq with Query</span>
                <span class="keywordflow">if</span> (iq.HasTag(typeof(agsXMPP.protocol.extensions.si.SI)))
                {
                    <span class="keywordflow">if</span> (iq.Type == IqType.set)
                    {
                        agsXMPP.protocol.extensions.si.SI si = iq.SelectSingleElement(typeof(agsXMPP.protocol.extensions.si.SI)) as agsXMPP.protocol.extensions.si.SI;

                        agsXMPP.protocol.extensions.filetransfer.File file = si.File;
                        <span class="keywordflow">if</span> (file != null)
                        {
                            <span class="comment">// somebody wants to send a file to us</span>
                            Console.WriteLine(file.Size.ToString());
                            Console.WriteLine(file.Name);
                        }
                    }
                }
                <span class="keywordflow">else</span>
                {
                    Element query = iq.Query;

                    <span class="keywordflow">if</span> (query != null)
                    {
                        <span class="keywordflow">if</span> (query.GetType() == typeof(agsXMPP.protocol.iq.version.Version))
                        {
                            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a8c491f3a895b62886e475d1ee5b62ae6">OnIqVersion</a>(iq, query);
                        }
                        <span class="keywordflow">else</span> <span class="keywordflow">if</span> (query.GetType() == typeof(agsXMPP.protocol.iq.register.Register))
                        {
                            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#acdbde560bb4b4fd434decae01800f0fe">OnIqRegister</a>(iq, query);
                        }
                    }
                }
            }
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a5165c5678e533b6951ae6e8fcfcb02dd"></a><!-- doxytag: member="StateForge::Examples::XmppChat::Client::OnIqError" ref="a5165c5678e533b6951ae6e8fcfcb02dd" args="(agsXMPP.protocol.client.IQ iq)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::Client::OnIqError </td>
          <td>(</td>
          <td class="paramtype">agsXMPP.protocol.client.IQ&#160;</td>
          <td class="paramname"><em>iq</em></td><td>)</td>
          <td><code> [inline, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_client_8cs_source.html#l00280">280</a> of file <a class="el" href="_client_8cs_source.html">Client.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aaf0b29baf8d3873110a0de48d169a621">ts</a>.TraceInformation(<span class="stringliteral">&quot;OnIqError {0} error type {1}, code: {2}&quot;</span>,
                                this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a61556dffca0a90756e11390c9acc43e1">Jid</a>.ToString(), iq.Error.Type, iq.Error.Code);
            <span class="keywordflow">if</span> (<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aa9b98a10489ececbc299fb9902a8c094">IqErrorHandler</a> != null)
            {
                <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aa9b98a10489ececbc299fb9902a8c094">IqErrorHandler</a>(<span class="keyword">this</span>, this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a61556dffca0a90756e11390c9acc43e1">Jid</a>, iq.Error);
            }
        }
</pre></div>
</div>
</div>
<a class="anchor" id="acdbde560bb4b4fd434decae01800f0fe"></a><!-- doxytag: member="StateForge::Examples::XmppChat::Client::OnIqRegister" ref="acdbde560bb4b4fd434decae01800f0fe" args="(agsXMPP.protocol.client.IQ iq, Element query)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::Client::OnIqRegister </td>
          <td>(</td>
          <td class="paramtype">agsXMPP.protocol.client.IQ&#160;</td>
          <td class="paramname"><em>iq</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Element&#160;</td>
          <td class="paramname"><em>query</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_client_8cs_source.html#l00290">290</a> of file <a class="el" href="_client_8cs_source.html">Client.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aaf0b29baf8d3873110a0de48d169a621">ts</a>.TraceInformation(<span class="stringliteral">&quot;OnIqRegister {0} Query: {1}&quot;</span>, this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a61556dffca0a90756e11390c9acc43e1">Jid</a>.ToString(), query.ToString());

        }
</pre></div>
</div>
</div>
<a class="anchor" id="a8c491f3a895b62886e475d1ee5b62ae6"></a><!-- doxytag: member="StateForge::Examples::XmppChat::Client::OnIqVersion" ref="a8c491f3a895b62886e475d1ee5b62ae6" args="(agsXMPP.protocol.client.IQ iq, Element query)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::Client::OnIqVersion </td>
          <td>(</td>
          <td class="paramtype">agsXMPP.protocol.client.IQ&#160;</td>
          <td class="paramname"><em>iq</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Element&#160;</td>
          <td class="paramname"><em>query</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_client_8cs_source.html#l00296">296</a> of file <a class="el" href="_client_8cs_source.html">Client.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aaf0b29baf8d3873110a0de48d169a621">ts</a>.TraceInformation(<span class="stringliteral">&quot;OnIqVersion {0}&quot;</span>, this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a61556dffca0a90756e11390c9acc43e1">Jid</a>.ToString());
            <span class="comment">// its a version IQ VersionIQ</span>
            agsXMPP.protocol.iq.version.Version version = query as agsXMPP.protocol.iq.version.Version;
            <span class="keywordflow">if</span> (iq.Type == IqType.get)
            {
                iq.SwitchDirection();
                iq.Type = IqType.result;

                version.Name = <span class="stringliteral">&quot;StateForgeClient&quot;</span>;
                version.Ver = <span class="stringliteral">&quot;0.1&quot;</span>;
                version.Os = Environment.OSVersion.ToString();

                this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aff4a98c8899b9af78bdf5759ff0afd19">xmppClientConnection</a>.Send(iq);
            }
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a6b418d03edd6ba4439514bd307bb32be"></a><!-- doxytag: member="StateForge::Examples::XmppChat::Client::OnLogin" ref="a6b418d03edd6ba4439514bd307bb32be" args="(object sender)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::Client::OnLogin </td>
          <td>(</td>
          <td class="paramtype">object&#160;</td>
          <td class="paramname"><em>sender</em></td><td>)</td>
          <td><code> [inline, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_client_8cs_source.html#l00399">399</a> of file <a class="el" href="_client_8cs_source.html">Client.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aaf0b29baf8d3873110a0de48d169a621">ts</a>.TraceInformation(<span class="stringliteral">&quot;OnLogin {0}&quot;</span>, this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a61556dffca0a90756e11390c9acc43e1">Jid</a>.ToString());
            <span class="keywordflow">if</span> (<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a7b54bbaf812db415ae05aae301033527">LoginHandler</a> != null)
            {
                <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a7b54bbaf812db415ae05aae301033527">LoginHandler</a>(<span class="keyword">this</span>, this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a61556dffca0a90756e11390c9acc43e1">Jid</a>);
            }
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a820513fb7ba41ba85322de5a5c368da8"></a><!-- doxytag: member="StateForge::Examples::XmppChat::Client::OnMessage" ref="a820513fb7ba41ba85322de5a5c368da8" args="(object sender, Message message)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::Client::OnMessage </td>
          <td>(</td>
          <td class="paramtype">object&#160;</td>
          <td class="paramname"><em>sender</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Message&#160;</td>
          <td class="paramname"><em>message</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_client_8cs_source.html#l00369">369</a> of file <a class="el" href="_client_8cs_source.html">Client.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            <span class="keywordflow">if</span> (message.Error != null)
            {
                <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aaf0b29baf8d3873110a0de48d169a621">ts</a>.TraceInformation(<span class="stringliteral">&quot;OnMessage {0} from {1} to {2}, error: {3}, body: {4}&quot;</span>,
                                    this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a61556dffca0a90756e11390c9acc43e1">Jid</a>.ToString(), message.From, message.To, message.Error.Code, message.Body);
            }
            <span class="keywordflow">else</span>
            {
                <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aaf0b29baf8d3873110a0de48d169a621">ts</a>.TraceInformation(<span class="stringliteral">&quot;OnMessage {0} from {1} to {2}, body: {3}&quot;</span>,
                                    this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a61556dffca0a90756e11390c9acc43e1">Jid</a>.ToString(), message.From, message.To, message.Body);
            }

            <span class="keywordflow">if</span> (<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#abc155349dd63d0673f7393b6d9690f96">MessageHandler</a> != null)
            {
                <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#abc155349dd63d0673f7393b6d9690f96">MessageHandler</a>(<span class="keyword">this</span>, this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a61556dffca0a90756e11390c9acc43e1">Jid</a>, message);
            }
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a0f94f8b4957b6d7ef7630b2b68b332ec"></a><!-- doxytag: member="StateForge::Examples::XmppChat::Client::OnPresence" ref="a0f94f8b4957b6d7ef7630b2b68b332ec" args="(object sender, Presence presence)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::Client::OnPresence </td>
          <td>(</td>
          <td class="paramtype">object&#160;</td>
          <td class="paramname"><em>sender</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Presence&#160;</td>
          <td class="paramname"><em>presence</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_client_8cs_source.html#l00347">347</a> of file <a class="el" href="_client_8cs_source.html">Client.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aaf0b29baf8d3873110a0de48d169a621">ts</a>.TraceInformation(<span class="stringliteral">&quot;OnPresence {0}, type: {1}, error: {2}&quot;</span>,
                this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a61556dffca0a90756e11390c9acc43e1">Jid</a>.ToString(), presence.Type, presence.Error);

            <span class="keywordflow">if</span> (presence.Type == PresenceType.subscribe)
            {
                <span class="keywordflow">if</span> (<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#acb9192e15b46c450db9c0e366a6d0e53">SubscribeRequestHandler</a> != null)
                {
                    <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#acb9192e15b46c450db9c0e366a6d0e53">SubscribeRequestHandler</a>(<span class="keyword">this</span>, this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a61556dffca0a90756e11390c9acc43e1">Jid</a>, presence.From);
                }
            }

            <span class="keywordflow">else</span>
            {
                <span class="keywordflow">if</span> (<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a1751f8d91095aea87aa26c2362ded63e">PresenceHandler</a> != null)
                {
                    <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a1751f8d91095aea87aa26c2362ded63e">PresenceHandler</a>(<span class="keyword">this</span>, this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a61556dffca0a90756e11390c9acc43e1">Jid</a>, presence);
                }
            }
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a5c5a62c35f52db9792f835bef2d0ac64"></a><!-- doxytag: member="StateForge::Examples::XmppChat::Client::OnReadXml" ref="a5c5a62c35f52db9792f835bef2d0ac64" args="(object sender, string xml)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::Client::OnReadXml </td>
          <td>(</td>
          <td class="paramtype">object&#160;</td>
          <td class="paramname"><em>sender</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>xml</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_client_8cs_source.html#l00204">204</a> of file <a class="el" href="_client_8cs_source.html">Client.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aaf0b29baf8d3873110a0de48d169a621">ts</a>.TraceEvent(TraceEventType.Verbose, 1, <span class="stringliteral">&quot;OnReadXml {0}&quot;</span>, <span class="keyword">this</span>.Jid.ToString());
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aaf0b29baf8d3873110a0de48d169a621">ts</a>.TraceEvent(TraceEventType.Verbose, 1, <span class="stringliteral">&quot;{0}&quot;</span>, xml);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a03ef7f220d3b42dc9cc1dcfd6b184345"></a><!-- doxytag: member="StateForge::Examples::XmppChat::Client::OnRosterEnd" ref="a03ef7f220d3b42dc9cc1dcfd6b184345" args="(object sender)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::Client::OnRosterEnd </td>
          <td>(</td>
          <td class="paramtype">object&#160;</td>
          <td class="paramname"><em>sender</em></td><td>)</td>
          <td><code> [inline, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_client_8cs_source.html#l00338">338</a> of file <a class="el" href="_client_8cs_source.html">Client.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aaf0b29baf8d3873110a0de48d169a621">ts</a>.TraceInformation(<span class="stringliteral">&quot;OnRosterEnd {0}&quot;</span>, this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a61556dffca0a90756e11390c9acc43e1">Jid</a>.ToString());
            <span class="keywordflow">if</span> (<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a66a7d36a34de9d485d0b2a682c8ca09c">RosterEndHandler</a> != null)
            {
                <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a66a7d36a34de9d485d0b2a682c8ca09c">RosterEndHandler</a>(<span class="keyword">this</span>, this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a61556dffca0a90756e11390c9acc43e1">Jid</a>);
            }
        }
</pre></div>
</div>
</div>
<a class="anchor" id="aaa067a306cbdc91ac7dd65cdd1ce2d04"></a><!-- doxytag: member="StateForge::Examples::XmppChat::Client::OnRosterItem" ref="aaa067a306cbdc91ac7dd65cdd1ce2d04" args="(object sender, agsXMPP.protocol.iq.roster.RosterItem item)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::Client::OnRosterItem </td>
          <td>(</td>
          <td class="paramtype">object&#160;</td>
          <td class="paramname"><em>sender</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">agsXMPP.protocol.iq.roster.RosterItem&#160;</td>
          <td class="paramname"><em>item</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_client_8cs_source.html#l00318">318</a> of file <a class="el" href="_client_8cs_source.html">Client.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {

            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aaf0b29baf8d3873110a0de48d169a621">ts</a>.TraceInformation(<span class="stringliteral">&quot;OnRosterItem {0} ask {1}, from {2}&quot;</span>, this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a61556dffca0a90756e11390c9acc43e1">Jid</a>.ToString(), item.Ask, item.Jid.ToString());

            <span class="keywordflow">if</span> (item.Ask == AskType.subscribe)
            {
                <span class="comment">//ts.TraceInformation(&quot;OnRosterItem {0} ask=subscribe&quot;, this.Jid.ToString(), item.ToString());</span>
                <span class="keywordflow">if</span> (<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a16bee587a46664d8623ec32aed45f1a1">SubscribeConfirmHandler</a> != null)
                {
                    <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a16bee587a46664d8623ec32aed45f1a1">SubscribeConfirmHandler</a>(<span class="keyword">this</span>, this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a61556dffca0a90756e11390c9acc43e1">Jid</a>, item.Jid);
                }
            }

            <span class="keywordflow">if</span> (<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a8d1f5a8befa5cb71386d56a16181acf3">RosterItemHandler</a> != null)
            {
                <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a8d1f5a8befa5cb71386d56a16181acf3">RosterItemHandler</a>(<span class="keyword">this</span>, this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a61556dffca0a90756e11390c9acc43e1">Jid</a>, item);
            }
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a89472541f36df7204aefce467db6696e"></a><!-- doxytag: member="StateForge::Examples::XmppChat::Client::OnRosterStart" ref="a89472541f36df7204aefce467db6696e" args="(object sender)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::Client::OnRosterStart </td>
          <td>(</td>
          <td class="paramtype">object&#160;</td>
          <td class="paramname"><em>sender</em></td><td>)</td>
          <td><code> [inline, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_client_8cs_source.html#l00313">313</a> of file <a class="el" href="_client_8cs_source.html">Client.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aaf0b29baf8d3873110a0de48d169a621">ts</a>.TraceInformation(<span class="stringliteral">&quot;OnRosterStart {0}&quot;</span>, this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a61556dffca0a90756e11390c9acc43e1">Jid</a>.ToString());
        }
</pre></div>
</div>
</div>
<a class="anchor" id="aae6ccdb4b9c9fa3eb78a67066466766b"></a><!-- doxytag: member="StateForge::Examples::XmppChat::Client::OnSaslStart" ref="aae6ccdb4b9c9fa3eb78a67066466766b" args="(object sender, SaslEventArgs e)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::Client::OnSaslStart </td>
          <td>(</td>
          <td class="paramtype">object&#160;</td>
          <td class="paramname"><em>sender</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">SaslEventArgs&#160;</td>
          <td class="paramname"><em>e</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_client_8cs_source.html#l00417">417</a> of file <a class="el" href="_client_8cs_source.html">Client.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aaf0b29baf8d3873110a0de48d169a621">ts</a>.TraceInformation(<span class="stringliteral">&quot;OnSaslStart {0}&quot;</span>, this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a61556dffca0a90756e11390c9acc43e1">Jid</a>.ToString());
            e.Auto = <span class="keyword">false</span>;
            <span class="comment">//e.SaslMechanism = Matrix.Xmpp.Sasl.SaslMechanism.NONE;</span>
            <span class="keywordflow">if</span> (<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a3766802a05eaabb89a0ee86d13cfccfd">SaslStartHandler</a> != null)
            {
                <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a3766802a05eaabb89a0ee86d13cfccfd">SaslStartHandler</a>(<span class="keyword">this</span>, this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a61556dffca0a90756e11390c9acc43e1">Jid</a>, e);
            }
        }
</pre></div>
</div>
</div>
<a class="anchor" id="affa2f396a94fc45233e78360d65a989c"></a><!-- doxytag: member="StateForge::Examples::XmppChat::Client::OnSocketError" ref="affa2f396a94fc45233e78360d65a989c" args="(object sender, Exception exception)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::Client::OnSocketError </td>
          <td>(</td>
          <td class="paramtype">object&#160;</td>
          <td class="paramname"><em>sender</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Exception&#160;</td>
          <td class="paramname"><em>exception</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_client_8cs_source.html#l00223">223</a> of file <a class="el" href="_client_8cs_source.html">Client.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aaf0b29baf8d3873110a0de48d169a621">ts</a>.TraceEvent(TraceEventType.Error, 1, <span class="stringliteral">&quot;OnSocketError {0}, exception: {1}&quot;</span>,
                <span class="keyword">this</span>.Jid.ToString(),
                exception.Message);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a7004a29d1ccde56ee50d38c2ccd6110c"></a><!-- doxytag: member="StateForge::Examples::XmppChat::Client::OnStreamError" ref="a7004a29d1ccde56ee50d38c2ccd6110c" args="(object sender, Element e)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::Client::OnStreamError </td>
          <td>(</td>
          <td class="paramtype">object&#160;</td>
          <td class="paramname"><em>sender</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Element&#160;</td>
          <td class="paramname"><em>e</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_client_8cs_source.html#l00216">216</a> of file <a class="el" href="_client_8cs_source.html">Client.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aaf0b29baf8d3873110a0de48d169a621">ts</a>.TraceEvent(TraceEventType.Error, 1, <span class="stringliteral">&quot;OnStreamError {0}, error: {1}&quot;</span>,
                <span class="keyword">this</span>.Jid.ToString(),
                e.ToString());
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a0054c4496a87ba3842442829e8ca5bee"></a><!-- doxytag: member="StateForge::Examples::XmppChat::Client::OnValidateCertificate" ref="a0054c4496a87ba3842442829e8ca5bee" args="(object sender, System.Security.Cryptography.X509Certificates.X509Certificate certificate, System.Security.Cryptography.X509Certificates.X509Chain chain, System.Net.Security.SslPolicyErrors sslPolicyErrors)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool StateForge::Examples::XmppChat::Client::OnValidateCertificate </td>
          <td>(</td>
          <td class="paramtype">object&#160;</td>
          <td class="paramname"><em>sender</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">System.Security.Cryptography.X509Certificates.X509Certificate&#160;</td>
          <td class="paramname"><em>certificate</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">System.Security.Cryptography.X509Certificates.X509Chain&#160;</td>
          <td class="paramname"><em>chain</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">System.Net.Security.SslPolicyErrors&#160;</td>
          <td class="paramname"><em>sslPolicyErrors</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_client_8cs_source.html#l00230">230</a> of file <a class="el" href="_client_8cs_source.html">Client.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aaf0b29baf8d3873110a0de48d169a621">ts</a>.TraceInformation(<span class="stringliteral">&quot;OnValidateCertificate {0}&quot;</span>, this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a61556dffca0a90756e11390c9acc43e1">Jid</a>.ToString(), certificate.ToString());
            <span class="keywordflow">return</span> <span class="keyword">true</span>;
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a83349c8028e772754f168f772b6e0965"></a><!-- doxytag: member="StateForge::Examples::XmppChat::Client::OnWriteXml" ref="a83349c8028e772754f168f772b6e0965" args="(object sender, string xml)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::Client::OnWriteXml </td>
          <td>(</td>
          <td class="paramtype">object&#160;</td>
          <td class="paramname"><em>sender</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>xml</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_client_8cs_source.html#l00210">210</a> of file <a class="el" href="_client_8cs_source.html">Client.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aaf0b29baf8d3873110a0de48d169a621">ts</a>.TraceEvent(TraceEventType.Verbose, 1, <span class="stringliteral">&quot;OnWriteXml {0}&quot;</span>, <span class="keyword">this</span>.Jid.ToString());
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aaf0b29baf8d3873110a0de48d169a621">ts</a>.TraceEvent(TraceEventType.Verbose, 1, <span class="stringliteral">&quot;{0}&quot;</span>, xml);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a4c64280fa47841755ee22e4a14a973d3"></a><!-- doxytag: member="StateForge::Examples::XmppChat::Client::Open" ref="a4c64280fa47841755ee22e4a14a973d3" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::Client::Open </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_client_8cs_source.html#l00058">58</a> of file <a class="el" href="_client_8cs_source.html">Client.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aaf0b29baf8d3873110a0de48d169a621">ts</a>.TraceInformation(<span class="stringliteral">&quot;Start {0}&quot;</span>, this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a61556dffca0a90756e11390c9acc43e1">Jid</a>.ToString());
            <span class="keywordflow">try</span>
            {
                this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aff4a98c8899b9af78bdf5759ff0afd19">xmppClientConnection</a>.Open();
            }
            <span class="keywordflow">catch</span> (System.Exception exception)
            {
                <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aaf0b29baf8d3873110a0de48d169a621">ts</a>.TraceEvent(TraceEventType.Error, 1, <span class="stringliteral">&quot;Start:  {0}&quot;</span>, exception.Message);
            }
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a23bf8b25f6b132bf83726b1dad898f56"></a><!-- doxytag: member="StateForge::Examples::XmppChat::Client::RegisterNewAccount" ref="a23bf8b25f6b132bf83726b1dad898f56" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::Client::RegisterNewAccount </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_client_8cs_source.html#l00077">77</a> of file <a class="el" href="_client_8cs_source.html">Client.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aff4a98c8899b9af78bdf5759ff0afd19">xmppClientConnection</a>.RegisterAccount = <span class="keyword">true</span>;
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a4c64280fa47841755ee22e4a14a973d3">Open</a>();
        }
</pre></div>
</div>
</div>
<a class="anchor" id="afbb4cfc5a0f5881816761d63b752b512"></a><!-- doxytag: member="StateForge::Examples::XmppChat::Client::RosterAddItem" ref="afbb4cfc5a0f5881816761d63b752b512" args="(Jid to)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::Client::RosterAddItem </td>
          <td>(</td>
          <td class="paramtype">Jid&#160;</td>
          <td class="paramname"><em>to</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>&lt;iq id="agsXMPP_4" type="set"&gt;&lt;Query xmlns="jabber:iq:roster"&gt;&lt;/Query&gt;&lt;/iq&gt; </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">to</td><td></td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_client_8cs_source.html#l00135">135</a> of file <a class="el" href="_client_8cs_source.html">Client.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aaf0b29baf8d3873110a0de48d169a621">ts</a>.TraceInformation(<span class="stringliteral">&quot;RosterAddItem {0} to {1}&quot;</span>, this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a61556dffca0a90756e11390c9acc43e1">Jid</a>.ToString(), to.ToString());
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aff4a98c8899b9af78bdf5759ff0afd19">xmppClientConnection</a>.RosterManager.AddRosterItem(to);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a0dc84f8367272f83857863d770abdafd"></a><!-- doxytag: member="StateForge::Examples::XmppChat::Client::RosterRemoveItem" ref="a0dc84f8367272f83857863d770abdafd" args="(Jid to)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::Client::RosterRemoveItem </td>
          <td>(</td>
          <td class="paramtype">Jid&#160;</td>
          <td class="paramname"><em>to</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>&lt;iq id="agsXMPP_5" type="set"&gt;&lt;Query xmlns="jabber:iq:roster"&gt;&lt;/Query&gt;&lt;/iq&gt; </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">to</td><td></td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_client_8cs_source.html#l00145">145</a> of file <a class="el" href="_client_8cs_source.html">Client.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aaf0b29baf8d3873110a0de48d169a621">ts</a>.TraceInformation(<span class="stringliteral">&quot;RosterRemoveItem {0} to {1}&quot;</span>, this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a61556dffca0a90756e11390c9acc43e1">Jid</a>.ToString(), to.ToString());
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aff4a98c8899b9af78bdf5759ff0afd19">xmppClientConnection</a>.RosterManager.RemoveRosterItem(to);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a9959f06ebaa09e5d2c8fc6382eda1973"></a><!-- doxytag: member="StateForge::Examples::XmppChat::Client::RosterRequest" ref="a9959f06ebaa09e5d2c8fc6382eda1973" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::Client::RosterRequest </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_client_8cs_source.html#l00151">151</a> of file <a class="el" href="_client_8cs_source.html">Client.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aaf0b29baf8d3873110a0de48d169a621">ts</a>.TraceInformation(<span class="stringliteral">&quot;RosterRequest {0}&quot;</span>, this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a61556dffca0a90756e11390c9acc43e1">Jid</a>.ToString());
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aff4a98c8899b9af78bdf5759ff0afd19">xmppClientConnection</a>.RequestRoster();
        }
</pre></div>
</div>
</div>
<a class="anchor" id="ad363413f64bed9c80ffb42243f881492"></a><!-- doxytag: member="StateForge::Examples::XmppChat::Client::SendChat" ref="ad363413f64bed9c80ffb42243f881492" args="(Jid to, string messageText)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::Client::SendChat </td>
          <td>(</td>
          <td class="paramtype">Jid&#160;</td>
          <td class="paramname"><em>to</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>messageText</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_client_8cs_source.html#l00163">163</a> of file <a class="el" href="_client_8cs_source.html">Client.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aaf0b29baf8d3873110a0de48d169a621">ts</a>.TraceInformation(<span class="stringliteral">&quot;SendChat from {0} to {1}, msg: {2}&quot;</span>, this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a61556dffca0a90756e11390c9acc43e1">Jid</a>.ToString(), to.ToString(), messageText);
            var message = <span class="keyword">new</span> Message(to, MessageType.chat, messageText);
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aff4a98c8899b9af78bdf5759ff0afd19">xmppClientConnection</a>.Send(message);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a05d8585020b6ceee7f99e5a55f881a15"></a><!-- doxytag: member="StateForge::Examples::XmppChat::Client::SendMyPresence" ref="a05d8585020b6ceee7f99e5a55f881a15" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::Client::SendMyPresence </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_client_8cs_source.html#l00083">83</a> of file <a class="el" href="_client_8cs_source.html">Client.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aaf0b29baf8d3873110a0de48d169a621">ts</a>.TraceInformation(<span class="stringliteral">&quot;SendMyPresence {0}&quot;</span>, this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a61556dffca0a90756e11390c9acc43e1">Jid</a>.ToString());
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aff4a98c8899b9af78bdf5759ff0afd19">xmppClientConnection</a>.SendMyPresence();
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a1fa73404acb45b6173ba178eccb10a89"></a><!-- doxytag: member="StateForge::Examples::XmppChat::Client::SubscriptionConfirm" ref="a1fa73404acb45b6173ba178eccb10a89" args="(Jid to)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::Client::SubscriptionConfirm </td>
          <td>(</td>
          <td class="paramtype">Jid&#160;</td>
          <td class="paramname"><em>to</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>&lt;presence to="romeo@example.net" type="subscribed"&gt; </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">to</td><td></td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_client_8cs_source.html#l00104">104</a> of file <a class="el" href="_client_8cs_source.html">Client.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aaf0b29baf8d3873110a0de48d169a621">ts</a>.TraceInformation(<span class="stringliteral">&quot;SubscriptionConfirm {0} to {1}&quot;</span>, this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a61556dffca0a90756e11390c9acc43e1">Jid</a>.ToString(), to.ToString());
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aff4a98c8899b9af78bdf5759ff0afd19">xmppClientConnection</a>.RosterManager.AddRosterItem(to);
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aff4a98c8899b9af78bdf5759ff0afd19">xmppClientConnection</a>.PresenceManager.ApproveSubscriptionRequest(to);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a77aa737761ca5e3a1d147cdf499e7871"></a><!-- doxytag: member="StateForge::Examples::XmppChat::Client::SubscriptionRemove" ref="a77aa737761ca5e3a1d147cdf499e7871" args="(Jid to)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::Client::SubscriptionRemove </td>
          <td>(</td>
          <td class="paramtype">Jid&#160;</td>
          <td class="paramname"><em>to</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>&lt;presence to="romeo@example.net" type="unsubscribed"&gt; </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">to</td><td></td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_client_8cs_source.html#l00125">125</a> of file <a class="el" href="_client_8cs_source.html">Client.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aaf0b29baf8d3873110a0de48d169a621">ts</a>.TraceInformation(<span class="stringliteral">&quot;SubscriptionRemove {0} to {1}&quot;</span>, this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a61556dffca0a90756e11390c9acc43e1">Jid</a>.ToString(), to.ToString());
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aff4a98c8899b9af78bdf5759ff0afd19">xmppClientConnection</a>.PresenceManager.RefuseSubscriptionRequest(to);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="afffc6e084bf1965ced4dc2d9f5b2298e"></a><!-- doxytag: member="StateForge::Examples::XmppChat::Client::SubscriptionRequest" ref="afffc6e084bf1965ced4dc2d9f5b2298e" args="(Jid to)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::Client::SubscriptionRequest </td>
          <td>(</td>
          <td class="paramtype">Jid&#160;</td>
          <td class="paramname"><em>to</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>&lt;presence to="juliet@example.com" type="subscribe"&gt; </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">to</td><td></td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_client_8cs_source.html#l00093">93</a> of file <a class="el" href="_client_8cs_source.html">Client.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aaf0b29baf8d3873110a0de48d169a621">ts</a>.TraceInformation(<span class="stringliteral">&quot;SubscriptionRequest {0} to {1}&quot;</span>, this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a61556dffca0a90756e11390c9acc43e1">Jid</a>.ToString(), to.ToString());
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aff4a98c8899b9af78bdf5759ff0afd19">xmppClientConnection</a>.RosterManager.AddRosterItem(to);
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aff4a98c8899b9af78bdf5759ff0afd19">xmppClientConnection</a>.PresenceManager.Subscribe(to);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="adf8725552a14ba9e07dba7407333d431"></a><!-- doxytag: member="StateForge::Examples::XmppChat::Client::UnSubscribe" ref="adf8725552a14ba9e07dba7407333d431" args="(Jid to)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::Client::UnSubscribe </td>
          <td>(</td>
          <td class="paramtype">Jid&#160;</td>
          <td class="paramname"><em>to</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>&lt;presence to="juliet@example.com" type="unsubscribe"&gt; </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">to</td><td></td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_client_8cs_source.html#l00115">115</a> of file <a class="el" href="_client_8cs_source.html">Client.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aaf0b29baf8d3873110a0de48d169a621">ts</a>.TraceInformation(<span class="stringliteral">&quot;UnSubscribe {0} to {1}&quot;</span>, this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a61556dffca0a90756e11390c9acc43e1">Jid</a>.ToString(), to.ToString());
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aff4a98c8899b9af78bdf5759ff0afd19">xmppClientConnection</a>.PresenceManager.Unsubscribe(to);
        }
</pre></div>
</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="a8a072a279cef2fb20344ebaeb743c448"></a><!-- doxytag: member="StateForge::Examples::XmppChat::Client::password" ref="a8a072a279cef2fb20344ebaeb743c448" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">string <a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#a8a072a279cef2fb20344ebaeb743c448">StateForge::Examples::XmppChat::Client::password</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_client_8cs_source.html#l00045">45</a> of file <a class="el" href="_client_8cs_source.html">Client.cs</a>.</p>

</div>
</div>
<a class="anchor" id="aab18c99018f8245cd346986a55be38fb"></a><!-- doxytag: member="StateForge::Examples::XmppChat::Client::traceName" ref="aab18c99018f8245cd346986a55be38fb" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">readonly string <a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aab18c99018f8245cd346986a55be38fb">StateForge::Examples::XmppChat::Client::traceName</a> = &quot;Client&quot;<code> [static, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_client_8cs_source.html#l00047">47</a> of file <a class="el" href="_client_8cs_source.html">Client.cs</a>.</p>

</div>
</div>
<a class="anchor" id="aaf0b29baf8d3873110a0de48d169a621"></a><!-- doxytag: member="StateForge::Examples::XmppChat::Client::ts" ref="aaf0b29baf8d3873110a0de48d169a621" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TraceSource <a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aaf0b29baf8d3873110a0de48d169a621">StateForge::Examples::XmppChat::Client::ts</a> = new TraceSource(<a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html#aab18c99018f8245cd346986a55be38fb">traceName</a>)<code> [static, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_client_8cs_source.html#l00048">48</a> of file <a class="el" href="_client_8cs_source.html">Client.cs</a>.</p>

</div>
</div>
<hr/><h2>Property Documentation</h2>
<a class="anchor" id="a61556dffca0a90756e11390c9acc43e1"></a><!-- doxytag: member="StateForge::Examples::XmppChat::Client::Jid" ref="a61556dffca0a90756e11390c9acc43e1" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Jid StateForge::Examples::XmppChat::Client::Jid<code> [get, set]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_client_8cs_source.html#l00044">44</a> of file <a class="el" href="_client_8cs_source.html">Client.cs</a>.</p>

</div>
</div>
<a class="anchor" id="aff4a98c8899b9af78bdf5759ff0afd19"></a><!-- doxytag: member="StateForge::Examples::XmppChat::Client::xmppClientConnection" ref="aff4a98c8899b9af78bdf5759ff0afd19" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">XmppClientConnection StateForge::Examples::XmppChat::Client::xmppClientConnection<code> [get, set]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_client_8cs_source.html#l00043">43</a> of file <a class="el" href="_client_8cs_source.html">Client.cs</a>.</p>

</div>
</div>
<hr/><h2>Event Documentation</h2>
<a class="anchor" id="a723ad06ab991e93bece21da91dddb545"></a><!-- doxytag: member="StateForge::Examples::XmppChat::Client::AuthErrorHandler" ref="a723ad06ab991e93bece21da91dddb545" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">AuthErrorEventHandler StateForge::Examples::XmppChat::Client::AuthErrorHandler</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_client_8cs_source.html#l00040">40</a> of file <a class="el" href="_client_8cs_source.html">Client.cs</a>.</p>

</div>
</div>
<a class="anchor" id="ad17e946c7e43b3b9e2c098ca210e9b6b"></a><!-- doxytag: member="StateForge::Examples::XmppChat::Client::CloseHandler" ref="ad17e946c7e43b3b9e2c098ca210e9b6b" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CloseEventHandler StateForge::Examples::XmppChat::Client::CloseHandler</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_client_8cs_source.html#l00031">31</a> of file <a class="el" href="_client_8cs_source.html">Client.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a2b1a508421321afe94a555c5eeb101fa"></a><!-- doxytag: member="StateForge::Examples::XmppChat::Client::ErrorHandler" ref="a2b1a508421321afe94a555c5eeb101fa" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ErrorEventHandler StateForge::Examples::XmppChat::Client::ErrorHandler</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_client_8cs_source.html#l00036">36</a> of file <a class="el" href="_client_8cs_source.html">Client.cs</a>.</p>

</div>
</div>
<a class="anchor" id="aa9b98a10489ececbc299fb9902a8c094"></a><!-- doxytag: member="StateForge::Examples::XmppChat::Client::IqErrorHandler" ref="aa9b98a10489ececbc299fb9902a8c094" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">IqErrorEventHandler StateForge::Examples::XmppChat::Client::IqErrorHandler</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_client_8cs_source.html#l00041">41</a> of file <a class="el" href="_client_8cs_source.html">Client.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a7b54bbaf812db415ae05aae301033527"></a><!-- doxytag: member="StateForge::Examples::XmppChat::Client::LoginHandler" ref="a7b54bbaf812db415ae05aae301033527" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">LoginEventHandler StateForge::Examples::XmppChat::Client::LoginHandler</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_client_8cs_source.html#l00030">30</a> of file <a class="el" href="_client_8cs_source.html">Client.cs</a>.</p>

</div>
</div>
<a class="anchor" id="abc155349dd63d0673f7393b6d9690f96"></a><!-- doxytag: member="StateForge::Examples::XmppChat::Client::MessageHandler" ref="abc155349dd63d0673f7393b6d9690f96" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">MessageEventHandler StateForge::Examples::XmppChat::Client::MessageHandler</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_client_8cs_source.html#l00032">32</a> of file <a class="el" href="_client_8cs_source.html">Client.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a1751f8d91095aea87aa26c2362ded63e"></a><!-- doxytag: member="StateForge::Examples::XmppChat::Client::PresenceHandler" ref="a1751f8d91095aea87aa26c2362ded63e" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">PresenceEventHandler StateForge::Examples::XmppChat::Client::PresenceHandler</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_client_8cs_source.html#l00033">33</a> of file <a class="el" href="_client_8cs_source.html">Client.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a66a7d36a34de9d485d0b2a682c8ca09c"></a><!-- doxytag: member="StateForge::Examples::XmppChat::Client::RosterEndHandler" ref="a66a7d36a34de9d485d0b2a682c8ca09c" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">RosterEndEventHandler StateForge::Examples::XmppChat::Client::RosterEndHandler</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_client_8cs_source.html#l00038">38</a> of file <a class="el" href="_client_8cs_source.html">Client.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a8d1f5a8befa5cb71386d56a16181acf3"></a><!-- doxytag: member="StateForge::Examples::XmppChat::Client::RosterItemHandler" ref="a8d1f5a8befa5cb71386d56a16181acf3" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">RosterItemEventHandler StateForge::Examples::XmppChat::Client::RosterItemHandler</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_client_8cs_source.html#l00037">37</a> of file <a class="el" href="_client_8cs_source.html">Client.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a3766802a05eaabb89a0ee86d13cfccfd"></a><!-- doxytag: member="StateForge::Examples::XmppChat::Client::SaslStartHandler" ref="a3766802a05eaabb89a0ee86d13cfccfd" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SaslStartEventHandler StateForge::Examples::XmppChat::Client::SaslStartHandler</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_client_8cs_source.html#l00039">39</a> of file <a class="el" href="_client_8cs_source.html">Client.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a16bee587a46664d8623ec32aed45f1a1"></a><!-- doxytag: member="StateForge::Examples::XmppChat::Client::SubscribeConfirmHandler" ref="a16bee587a46664d8623ec32aed45f1a1" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SubscribeConfirmEventHandler StateForge::Examples::XmppChat::Client::SubscribeConfirmHandler</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_client_8cs_source.html#l00035">35</a> of file <a class="el" href="_client_8cs_source.html">Client.cs</a>.</p>

</div>
</div>
<a class="anchor" id="acb9192e15b46c450db9c0e366a6d0e53"></a><!-- doxytag: member="StateForge::Examples::XmppChat::Client::SubscribeRequestHandler" ref="acb9192e15b46c450db9c0e366a6d0e53" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SubscribeRequestEventHandler StateForge::Examples::XmppChat::Client::SubscribeRequestHandler</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_client_8cs_source.html#l00034">34</a> of file <a class="el" href="_client_8cs_source.html">Client.cs</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="_client_8cs_source.html">Client.cs</a></li>
</ul>
</div>
﻿<div id="footer">
    <hr />
    <p>
        Copyright &copy; 2011 StateForge.</p>
    <hr />
</div>
</body> </html> 
